---
slug: /plugins/forced-layout
title: Forced Layout
---

Allows you to enforce document structure. For example, you can require that the first line is an H1.

- `createNormalizeTypesPlugin`
- `createTrailingBlockPlugin`

```ts live
() => {
  const plugins = [
    ...pluginsBasic,
    createTrailingBlockPlugin({ type: ELEMENT_PARAGRAPH }),
    createNormalizeTypesPlugin({
      rules: [{ path: [0], strictType: ELEMENT_H1 }],
    }),
  ];

  return (
    <Plate
      id="forced-layout"
      plugins={plugins}
      components={components}
      options={options}
      editableProps={editableProps}
      initialValue={initialValueForcedLayout}
    />
  );
}
```
